<template>
  <button @click="downloadZip">Download ZIP</button>
</template>

<script>
import filePath from "@/utils/filePath";
export default {
  data () {
    return {
      dataList: [
        {
          companyId: 'companyId111111',
          companyName: 'companyName111111',
          filePath: 'http://192.168.177.252:8026/song/img/20241105094800000000460.png',
          fileName: '电脑分辨率福利姬.png',
          id: '111111',
          name: '文件1'
        },
        {
          companyId: 'companyId222222',
          companyName: 'companyName222222',
          filePath: 'http://192.168.177.252:8026/song/img/20241105094800000000460.png',
          fileName: '电脑分辨率福利姬.png',
          id: '222222',
          name: '文件2'
        },
        {
          companyId: 'companyId333333',
          companyName: 'companyName333333',
          filePath: 'http://192.168.177.252:8026/song/img/20241105094622000000797.png',
          fileName: '电脑分辨率福利姬.png',
          id: '333333',
          name: '文件3'
        },
        {
          companyId: 'companyId444444',
          companyName: 'companyName444444',
          filePath: 'http://192.168.177.252:8026/song/img/20241105094622000000797.png',
          fileName: '电脑分辨率福利姬.jpg',
          id: '444444',
          name: '文件4'
        },
        {
          companyId: 'companyId555555',
          companyName: 'companyName555555',
          filePath: 'http://192.168.177.252:8026/song/img/20241105094622000000797.png',
          fileName: '电脑分辨率福利姬.webp',
          id: '555555',
          name: '文件5'
        },
        {
          companyId: 'companyId666666',
          companyName: 'companyName666666',
          filePath: 'http://192.168.177.252:8026/song/img/20241105094622000000797.png',
          fileName: '电脑分辨率福利姬.png',
          id: '666666',
          name: '文件6'
        },
        {
          companyId: 'companyId777777',
          companyName: 'companyName777777',
          filePath: '',
          fileName: '',
          id: '7777777',
          name: '文件7'
        },
      ],
      name: '公司ssss'
    }
  },
  methods: {
    downloadZip () {
      filePath.downloadZips(this.dataList, '上海电力公司')
    }
  }
}
</script>
